import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../view/layout/Index'
import Login from '../view/login/Login3'  // 导入组件
import Employee1 from "../view/25_Employee/Employee1.1"
import Employee2 from "../view/25_Employee/Employee1.2"
import Employee3 from "../view/26_Employee/Employee"
import Employee4 from "../view/26_Employee/Employee2"
import Employee5 from "../view/26_Employee/Employee3"
import Night_Owl_Field from "../view/login/Night_Owl_Field";
import Login4 from '../view/login/Login4'
import Login5 from '../view/login/Login5'
import Employee6 from "../view/29_Employee/Employee"
import Employee7 from "../view/28_Employee/Sex_ratio_1"
import Employee8 from "../view/29_Employee/charts"
import Employee from "../view/25_Employee/Employee";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login4
    },
    {
      path:'/login4',
      name:'login4',
      component:Login4
    },
    {
      path:'/login5',
      name:'login5',
      component:Login5
    },
    {
      path: '/nightowl',
      name: 'nightowl',
      component: Night_Owl_Field
    },

    {
      path: '/layout',
      name: 'Layout',
      component: Layout,
      children: [

        {
          path: 'employee',
          name: 'Employee',
          component: Employee
        },{
          path: 'employee1.1',
          name: 'Employee',
          component: Employee1
        } ,
        {
          path: 'employee1.2',
          name: 'Employee',
          component: Employee2
        },
        {
        path:'employee2.1',
        name:'Employee',
        component:Employee3
        } ,
        {
          path:'employee2.2',
          name:'Employee',
          component:Employee4
        },
        {
          path:'employee2.3',
          name:'Employee',
          component:Employee5
        },
        {
          path:'employee4.1',
          name:'Employee',
          component:Employee6
        },
        {
          path:'employee5.1',
          name:'Employee',
          component:Employee8
        } ,

      ]
    }
  ]
})
